home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics Plus
/
Graphics Plus.iso
/
general
/
plotting
/
contour
/
contour.lha
/
Contour
/
rand.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1990-08-28
|
194 b
|
12 lines
#include <math.h>
main()
{
int i,m,n,npts=50;
for (i=0; i<20; i++) {
m = rand() % 10;
n = 10 + (int)((0.1*m+0.05)*(npts-20));
printf("i=%d m=%d n=%d\n",i,m,n);
}
}